Xbasic

A5DNS::ManagerDecryptConnectionString Method

Syntax

.DecryptConnectionString as A5Storage::CallResult (BYREF DecryptedText as C, ConnectionStringIn as C [, PassphraseIn as C])

Arguments

BYREF DecryptedTextCharacter

The variable into which the decrypted text should be placed.

ConnectionStringInCharacter

The connection string to be decrypted

PassphraseInCharacter

The passphrase with which the connection string was encrypted (if any).

Returns

resultA5Storage::CallResult

A CallResult object with properties that describe any error returned. Check the Success property to see if the function succeeded.

Description

DecryptConnectionString decrypts a previously encrypted connection string using the (optional) passphrase provided.

Example

' Call the static function A5DNS::Manager::DecryptConnectionString()

dim decrypted as c
dim encrypted as c = "encrypted connection string"
dim passphrase as c = "secret"
?A5DNS::Manager::DecryptConnectionString(decrypted, encrypted, passphrase)